import config from '@/config'
import RequestBase from '@/utils/request.js'

const request = new RequestBase(config.basicInfoUrl)

// 查询ai视频监控待办数量
export function getAiAlarmTodoCount(query) {
  return request.get(`/alarm/web/info/getTodoAlarmCount`, query)
}

// 查询ai视频监控待办列表
export function getAiAlarmList(query) {
  return request.get(`/alarm/web/info/getList`, query)
}

// 查询ai视频监控详情
export function getAiAlarmInfoById(infoId) {
  return request.get(`/alarm/web/info/getDetail/${infoId}`)
}

// 处理
export function dealAiAlarm(data) {
  return request.put('/alarm/web/info/deal', data)
}
